<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Detalle de Permiso por Rol</title>
    </head>
    <body>
        <f:view>
            <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            <h1>Detalle de Permiso por Rol</h1>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="Habilitado:"/>
                    <h:outputText value="#{permisorol.permisorol.habilitado}" title="Habilitado" />
                    <h:outputText value="Fecha Asignacion:"/>
                    <h:outputText value="#{permisorol.permisorol.fechaAsignacion}" title="Fecha Asignacion" >
                        <f:convertDateTime type="DATE" pattern="dd/MM/yyyy" />
                    </h:outputText>
                    <h:outputText value="Permiso:"/>
                    <h:panelGroup>
                        <h:outputText value=" #{permisorol.permisorol.permiso}"/>
                        <h:panelGroup rendered="#{permisorol.permisorol.permiso != null}">
                            <h:outputText value=" ("/>
                            <h:commandLink value="[Ver]" action="#{permiso.detailSetup}">
                                <f:param name="jsfcrud.currentPermisorol" value="#{permisorol.asString[permisorol.permisorol]}"/>
                                <f:param name="jsfcrud.currentPermiso" value="#{permiso.asString[permisorol.permisorol.permiso]}"/>
                                <f:param name="jsfcrud.relatedController" value="permisorol"/>
                                <f:param name="jsfcrud.relatedControllerType" value="modelo.PermisorolController"/>
                            </h:commandLink>
                            <h:outputText value=" "/>
                            <h:commandLink value="[Editar]" action="#{permiso.editSetup}">
                                <f:param name="jsfcrud.currentPermisorol" value="#{permisorol.asString[permisorol.permisorol]}"/>
                                <f:param name="jsfcrud.currentPermiso" value="#{permiso.asString[permisorol.permisorol.permiso]}"/>
                                <f:param name="jsfcrud.relatedController" value="permisorol"/>
                                <f:param name="jsfcrud.relatedControllerType" value="modelo.PermisorolController"/>
                            </h:commandLink>
                            <h:outputText value=" "/>
                            <h:commandLink value="[Borrar]" action="#{permiso.destroy}">
                                <f:param name="jsfcrud.currentPermisorol" value="#{permisorol.asString[permisorol.permisorol]}"/>
                                <f:param name="jsfcrud.currentPermiso" value="#{permiso.asString[permisorol.permisorol.permiso]}"/>
                                <f:param name="jsfcrud.relatedController" value="permisorol"/>
                                <f:param name="jsfcrud.relatedControllerType" value="modelo.PermisorolController"/>
                            </h:commandLink>
                            <h:outputText value=" )"/>
                        </h:panelGroup>
                    </h:panelGroup>
                    <h:outputText value="Rol:"/>
                    <h:panelGroup>
                        <h:outputText value=" #{permisorol.permisorol.rol}"/>
                        <h:panelGroup rendered="#{permisorol.permisorol.rol != null}">
                            <h:outputText value=" ("/>
                            <h:commandLink value="[Ver]" action="#{rol.detailSetup}">
                                <f:param name="jsfcrud.currentPermisorol" value="#{permisorol.asString[permisorol.permisorol]}"/>
                                <f:param name="jsfcrud.currentRol" value="#{rol.asString[permisorol.permisorol.rol]}"/>
                                <f:param name="jsfcrud.relatedController" value="permisorol"/>
                                <f:param name="jsfcrud.relatedControllerType" value="modelo.PermisorolController"/>
                            </h:commandLink>
                            <h:outputText value=" "/>
                            <h:commandLink value="[Editar]" action="#{rol.editSetup}">
                                <f:param name="jsfcrud.currentPermisorol" value="#{permisorol.asString[permisorol.permisorol]}"/>
                                <f:param name="jsfcrud.currentRol" value="#{rol.asString[permisorol.permisorol.rol]}"/>
                                <f:param name="jsfcrud.relatedController" value="permisorol"/>
                                <f:param name="jsfcrud.relatedControllerType" value="modelo.PermisorolController"/>
                            </h:commandLink>
                            <h:outputText value=" "/>
                            <h:commandLink value="[Borrar]" action="#{rol.destroy}">
                                <f:param name="jsfcrud.currentPermisorol" value="#{permisorol.asString[permisorol.permisorol]}"/>
                                <f:param name="jsfcrud.currentRol" value="#{rol.asString[permisorol.permisorol.rol]}"/>
                                <f:param name="jsfcrud.relatedController" value="permisorol"/>
                                <f:param name="jsfcrud.relatedControllerType" value="modelo.PermisorolController"/>
                            </h:commandLink>
                            <h:outputText value=" )"/>
                        </h:panelGroup>
                    </h:panelGroup>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{permisorol.destroy}" value="[Borrar]">
                    <f:param name="jsfcrud.currentPermisorol" value="#{permisorol.asString[permisorol.permisorol]}" />
                </h:commandLink>
                <h:commandLink action="#{permisorol.editSetup}" value="[Editar]">
                    <f:param name="jsfcrud.currentPermisorol" value="#{permisorol.asString[permisorol.permisorol]}" />
                </h:commandLink>
                <h:commandLink action="#{permisorol.createSetup}" value="[Nuevo]" />
                <h:commandLink action="#{permisorol.listSetup}" value="[Listar]"/>
                <br />
                <a href="/sistemaReserva/faces/welcomeJSF.jsp">Index</a>
            </h:form>
        </f:view>
    </body>
</html>
